import React from "react";

/**
 * 加载图片或样式文件
 * */
import './sass/NoData.scss';
import NoDataImg from '../../containers/_common_img/myActivity/noData.png';

export default class NoData extends React.Component {
    constructor(props) {
        super(props);
        this.state = {
            // sidebarVisible: false
        }
    }

    render() {
        const { src, text } = this.props;
        return (
            <div className="no-data">
                <img src={ src || NoDataImg } alt=""/>
                <p>{text || '暂无数据'}</p>
            </div>
        )
    }
}